package pe.bf.extranet.web;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import pe.bf.domain.bean.Empresa;
import pe.bf.domain.bean.Perfil;
import pe.bf.domain.bean.Usuario;
import pe.bf.extranet.cliente.ClienteWS;
 
public class CerrarServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
 
    public CerrarServlet() {
        super(); 
    }
 
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		doPost(request,response);
	}
	
	
	

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
 
					request.getSession().removeAttribute("usuarioBean");
					request.getSession(false);
					request.getRequestDispatcher("index.jsp").forward(request, response); 
					return;
		
	}

}
